package com.ror.java.se.reflect;

public class Demo01 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> class1 = Class.forName("com.ror.java.se.reflect.Student");
        Class<Student> class2 = Student.class;
        Class<? extends Student> class3 = new Student().getClass();
        System.out.println(class1); //class com.ror.java.se.reflect.Student
        System.out.println(class2); //class com.ror.java.se.reflect.Student
        System.out.println(class3); //class com.ror.java.se.reflect.Student
        System.out.println(class1 == class2); //true
        System.out.println(class1 == class3); //true
    }
}
